set target_library NangateOpenCellLibrary_typical.db
set link_library [concat $target_library "*"]
set search_path [concat $search_path /home/share/platform/nangate45/lib]
define_design_lib WORK -path work_lib
read_file -format verilog /home/xiezhen/xz-yosys/test-yosys-xz/yosys-xz/examle_case/gcd-xz-7/nangate45/yosys/orfs/result/base/1_synth.v
analyze -format sverilog /home/xiezhen/xz-yosys/test-yosys-xz/yosys-xz/examle_case/gcd-xz-7/nangate45/yosys/orfs/result/base/1_synth.v
elaborate gcd
current_design gcd
read_sdc ../constraint.sdc

report_area > log/area.rpt
report_design > log/design.rpt
report_timing -path end > log/timing.rpt
report_timing -max_path 10 >> log/timing.rpt
report_power > log/power.rpt
report_qor > log/qor.rpt
exit
